package company.controller;

import company.common.R;
import company.domain.Pets;
import company.domain.Petsimgs;
import company.service.PetsService;
import company.service.PetsimgsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class PetsimgsController {
    @Resource
    PetsimgsService petsimgsService;

    @RequestMapping("/selectpetsimgs")
    public R selectPetsimgs(){
        List<Petsimgs> list = this.petsimgsService.list();
        return new R().add("list",list);
    }
}
